function ber(){
    $("#bord").css("border-color", "#ff6700");
    $("#bord").next().css("border-color", "#ff6700");
}
$("#bord").mouseout(function(){
        $("#bord").css("border-color", "");
        $("#bord").next().css("border-color", "");
});
   
function goodsList() {
  let uid = 109134;
  let pagenum = 1;
  let pagesize = 10;
   console.log(uid);
    let url = "http://jx.xuzhixiang.top/ap/api/allproductlist.php";
    $.get(url, { uid, pagesize, pagenum }, function (v) {
      console.log(v);
      let obj = v.data;
      console.log(obj);
      let show = obj.map(
        (v) => `
        <a href="./html/04-item.html?pid=${v.pid}">
        <li>
          <img
            src="${v.pimg}"
            alt=""
          />
          <h3>${v.pname}</h3>
          <p>${v.pdesc}</p>
          <h4>${v.pprice}元起</h4>
        </li>
      </a>
      `
      );
      $(".goumai1 ul").html(show.join(""));
    });
  }
  let sl=Number(localStorage.getItem("sl")) 
  console.log(sl);
  $("#sl").html(sl)
  // $("#sl").css("color","#e0e0e0")
  
 
  goodsList()

  function goodsList1() {
    let pagenum = 0;
    let pagesize = 10;
    let uid = 109134;
     console.log(uid);
      let url = "http://jx.xuzhixiang.top/ap/api/allproductlist.php";
      $.get(url, { uid, pagesize, pagenum }, function (v) {
        console.log(v);
        let obj = v.data;
        console.log(obj);
        let show = obj.map(
          (v) => `
          <a href="./html/04-item.html?pid=${v.pid}">
          <li>
            <img
              src="${v.pimg}"
              alt=""
            />
            <h3>${v.pname}</h3>
            <p>${v.pdesc}</p>
            <h4>${v.pprice}元起</h4>
          </li>
        </a>
        `
        );
        $(".goumai2 ul").html(show.join(""));
      });
    }
    goodsList1()